# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-aiohttp-jinja2
_pkgname=aiohttp-jinja2
pkgver=1.6
pkgrel=3
pkgdesc='jinja2 template renderer for aiohttp.web (http server for asyncio).'
arch=('any')
url='https://pypi.org/project/aiohttp-jinja2/#files'
license=('APACHE')
depends=('python' 'python-aiohttp' 'python-jinja')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('9089651fdcc2a2d19de383c067e776270a61e83e29f58e1cf44c5a5c58302030d5f4c250bee3ef077c33bd979b08bd5c5a5b4295586e8deb696d5ec19c08ad3f')

prepare() {
  cp -a "$_pkgname-$pkgver"{,-2}
}

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {

  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

